import type { RequestOptions } from '@/utils/request/types'

export const genUniqueReqKey = (config: RequestOptions) => {
  const { method, url, query, params } = config
  return [method, url, JSON.stringify(query), JSON.stringify(params)].join('|')
}
